//
//  DSBaseViewController.h
//  IntelligentLock
//
//  Created by yj_zhang on 2019/5/24.
//  Copyright © 2019 yj_zhang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "StatisticLoadingView.h"
#import "StatisticNetUnReachView.h"


NS_ASSUME_NONNULL_BEGIN

typedef enum {
    BarTint_Default =0 ,//默认白色背景 灰色shawdow
    BarTint_Clear,      //背景、shadow皆为透明色
    
}NavigationBarTintStyle;

@interface DSBaseViewController : UIViewController

//返回键
@property(nonatomic,strong)UIButton *backBtn;
//返回title
@property(nonatomic,strong)UILabel *backTitleLB;
//右侧键
@property(nonatomic,strong)UIButton *rightBtn;
//加载页
@property(nonatomic,strong)StatisticLoadingView *loadingView;
//无网页
@property(nonatomic,strong)StatisticNetUnReachView *noNetView;


//返回
- (void)backAction:(UIButton *)btn;
//右侧
- (void)rightAction:(UIButton *)rightBtn;
//返回键
- (void)setBackBtnTitle:(NSString *)backTitle;
//设置Title
- (void)setNavigationTitle:(NSString*)navTitle;
//设置右侧btn名称
- (void)setRightBtnTitle:(NSString *)rightBtnTitle;
//设置右侧btn图标
- (void)setRightBtnImg:(NSString *)imgName;
//设置加载动画
- (void)setLoadingAnimationFrame:(CGRect)frame imgArr:(NSMutableArray*)arr;
//隐藏无网页和加载页
-(void)hiddenNetAndLoadingView;
//设置无网页
- (void)setUnNetPageFrame:(CGRect)frame imgArr:(NSMutableArray*)arr reloadSel:(SEL)sel target:(UIViewController *)target;
//更改导航条样式
- (void)setNavigationBarStyle:(NavigationBarTintStyle)barStyle;

@end

NS_ASSUME_NONNULL_END
